public class Alg1<E extends Comparable<E>>{
    public E findMax(E[] array){
        E max=array[0];
        for(int i=1;i< array.length;i++){
            if(max.compareTo(array[i])<0){
                max=array[i];
            }
        }
        return max;
    }

}
